package com.starlink.model.dtomapper;

import com.starlink.model.domain.SchoolbagBooksDO;
import com.starlink.model.request.SchoolbagBooksRequest;
import com.starlink.model.vo.SchoolbagBooksVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author zhanghong
 */
@Mapper(componentModel = "spring")
public interface SchoolbagBooksDtoMapper {

    SchoolbagBooksDtoMapper INSTANCE = Mappers.getMapper(SchoolbagBooksDtoMapper.class);

    /**
    * DO to VO
    * @param schoolbagBooksDO
    * @return
    */
    SchoolbagBooksVO do2VO(SchoolbagBooksDO schoolbagBooksDO);

    /**
     * request to DO
     * @param request
     * @return
     */
    SchoolbagBooksDO request2DO(SchoolbagBooksRequest request);
}
